package com.ywqf_api.enums;

/**
 * Created by Administrator on 2018/3/28 0028.
 */
public enum  ReturnEnum {

    SUCCESS(1000,"成功！"),
    FIND_SUCCESS(1000,"查询成功！"),
    FIND_FILE(1,"查询失败"),
    ADD_SUCCESS(1002,"添加成功"),
    ADD_FILE(2,"添加失败"),
    UPDATE_SUCCESS(1003,"编辑成功！"),
    UPDATE_FILE(3,"编辑失败"),
    DELETE_SUCCESS(1004,"删除成功"),
    DELETE_FILE(4,"删除失败"),
    FILE(99,"未知错误"),
    ADD_COM_FAIL(100,"反馈失败，请稍后重试"),

    //调查问卷
    FIND_QUESTION_FULL(52,"您已经填写过此问卷！"),

    //图片
    SAVE_FILE_FAIL(5,"没有找到存储路径！"),
    //缴费
    FIND_PARKING_NULL(6,"没查到该用户车位费数据！"),
    FIND_ESTATE_NULL(7,"没查到该用户物业费数据！"),
    FIND_HEATING_NULL(8,"没查到该用户采暖费数据！"),
    FIND_WATER_NULL(9,"没查到数据！"),
    FIND_ELE_NULL(10,"没查到数据！"),
    FIND_ELE_FAIL_EMPTY_METER(11,"该房屋暂时无法缴费，请联系物业公司！"),
    FIND_ELE_SUCCESS(1005,"物业公司查询成功，该用户上次缴费时间查不到！"),
    FIND_FAIL(1000,"没有查到该用户缴费记录！"),

    //出租出售
    FIND_NOT_FAIL_CUSTOMER(12,"查询不到该客户信息！"),
    ADD_UPDATE_SUCCESS(1006,"上次信息改为出租出售成功！"),

    //订单
    FIND_NULL(13,"该用户没有订单！"),
    FEE_NULL(1000,"没有查到该用户缴费记录！"),

    //消息
    FIND_NULL_MESSAGE(1000,"没有消息记录！"),

    //维修
    FIND_NULL_MAIN(1000,"没有保修记录！"),

    //家政
    FIND_KEEP_NULL(1000,"该小区目前没有家政服务！"),
    FIND_KEEP_ONE_NULL(18,"没有该家政服务！"),

    //房屋
    NOT_FIND_HOUSE(19,"房屋信息有误或房屋不存在！"),

    //车位
    FIND_CARS_NULL(20,"没有找到该房屋对应的车位！"),

    //出租出售
    FIND_HOUSE_SELL_NULL(21,"查不到数据！"),

    //banner
    FIND_BANNER_NULL(1000,"查不到数据！"),

    //小区物业
    FIND_CORP_COMMUNITY_NULL(1000,"没有查到相关数据！"),

    //角色负责人
    FIND_ROLE_USER_NULL (1000,"没有查到当前小区的负责人员！"),


    ALIPAY_CREAT_FAIL (1,"失败"),
    ALIPAY_CREAT_SUCCESS (1000,"成功");

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ReturnEnum(int code,String message) {
        this.code = code;
        this.message = message;
    }
}
